package com.team2.s3hrjyxm.dao;
import java.util.List;

import com.team2.s3hrjyxm.pojo.ConfigMajorDesignation;
import org.apache.ibatis.annotations.Param;
/**
 * ConfigMajorDesignation的Dao接口
 * 
 * @author 
 *
 */
public interface ConfigMajorDesignationDao {

	/**
	 * 获得ConfigMajorDesignation数据的总行数, ,如果没有条件则传入null
	 * 
	 * @param  
	 * @return
	 */
	long getConfigMajorDesignationRowCount();
	
	 
	
	/**
	 * 获得一个ConfigMajorDesignation对象,以参数ConfigMajorDesignation对象中不为空的属性作为条件进行查询,返回符合条件的第一条
	 * 
	 * @param obj
	 * @return
	 */
	ConfigMajorDesignation selectConfigMajorDesignationObjSingle(ConfigMajorDesignation obj);
	
	/**
	 * 获得一个ConfigMajorDesignation对象,以参数ConfigMajorDesignation对象中不为空的属性作为条件进行查询
	 * 
	 * @param obj
	 * @return
	 */
	List<ConfigMajorDesignation> selectConfigMajorDesignationByObj(ConfigMajorDesignation obj);

	/**
	 * 插入ConfigMajorDesignation到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertConfigMajorDesignation(ConfigMajorDesignation value);
	
	/**
	 * 插入ConfigMajorDesignation中属性值不为null的数据到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertNotNullConfigMajorDesignation(ConfigMajorDesignation value);
	
	/**
	 * 批量插入ConfigMajorDesignation到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertConfigMajorDesignationByBatch(List<ConfigMajorDesignation> value);
	/**
	 * 通过ConfigMajorDesignation的id删除ConfigMajorDesignation
	 * 
	 * @param id
	 * @return
	 */
	int deleteConfigMajorDesignationById(Object id);
	
	 
	
	/**
	 * 通过ConfigMajorDesignation的id更新ConfigMajorDesignation中的数据,包括null值
	 * 
	 * @param enti
	 * @return
	 */
	int updateConfigMajorDesignationById(ConfigMajorDesignation enti);
	
	/**
	 * 通过ConfigMajorDesignation的id更新ConfigMajorDesignation中属性不为null的数据
	 * 
	 * @param enti
	 * @return
	 */
	int updateNotNullConfigMajorDesignationById(ConfigMajorDesignation enti);
	
	 
}